link_libraries(common_base)

add_executable(name_server
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/server/main_ns.cpp
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/server/CNameServer.cpp
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/server/CInterNameProxy.cpp
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/server/CHostProxy.cpp
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/server/CAddressAllocator.cpp
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/security/CServerSecurityConfig.cpp
)

add_executable(host_server
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/server/main_hs.cpp
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/server/CHostServer.cpp
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/security/CHostSecurityConfig.cpp
)

add_executable(lssvc
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/server/main_ls.cpp
)

add_executable(lshost
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/server/main_lh.cpp
)

add_executable(lsclt
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/server/main_lc.cpp
)

add_executable(logsvc
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/log/main_log_server.cpp
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/log/CLogFileManager.cpp
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/log/fdb_log_config.cpp
)

add_executable(logviewer
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/log/main_log_client.cpp
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/log/fdb_log_config.cpp
)

add_executable(fdbxclient
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/server/main_xclient.cpp
)

add_executable(fdbxserver
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/server/main_xserver.cpp
)

add_executable(ntfcenter
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/server/main_nc.cpp
)

add_executable(lsevt
   ${PROJECT_SOURCE_DIR}/deprecated/fdbus/server/main_le.cpp
)

install(TARGETS name_server host_server lssvc lshost lsclt logsvc logviewer fdbxclient fdbxserver ntfcenter lsevt RUNTIME DESTINATION usr/bin)
